package com.csxy.six.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 公告附件实体类
 * 对应数据库中的announcement_attachment表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name="AnnouncementAttachment对象", description="公告附件")
public class AnnouncementAttachment implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "附件ID")
    @TableId(value = "attach_id", type = IdType.AUTO)
    private Integer attachId;

    @Schema(description = "公告ID")

    private Integer announceId;

    @Schema(description = "文件URL")

    private String fileUrl;

    @Schema(description = "文件名称")

    private String fileName;
}